﻿Public Class HangHoa

    Private iSoHH As Integer
    Private sMaHH As String
    Private sTenHH As String
    Private iSoLoaiHH As Integer ''Khóa phụ liên kết với bảng Loại hàng hóa
    Private sDonVi As String
    Private sDonViChuyenDoi As String
    Private slTyLeChuyenDoi As Single
    Private sThoiHanBaoHanh As String
    Private iSoLuongToiThieu As Integer
    Private dDonGiaMua As Decimal
    Private dDonGiaBan As Decimal
    Private slThueSuat As Single
    Private iSoDoiTuong As Integer ''Khóa phụ liên kết với bảng Đối tượng
    Private sDienGiai As String
    Private bHoatDong As Boolean

    Public Property SoHH() As Integer
        Get
            Return iSoHH
        End Get
        Set(ByVal value As Integer)
            iSoHH = value
        End Set
    End Property

    Public Property MaHH() As String
        Get
            Return sMaHH
        End Get
        Set(ByVal value As String)
            sMaHH = value
        End Set
    End Property

    Public Property TenHH() As String
        Get
            Return sTenHH
        End Get
        Set(ByVal value As String)
            sTenHH = value
        End Set
    End Property

    Public Property SoLoaiHH() As Integer
        Get
            Return iSoLoaiHH
        End Get
        Set(ByVal value As Integer)
            iSoLoaiHH = value
        End Set
    End Property

    Public Property DonVi() As String
        Get
            Return sDonVi
        End Get
        Set(ByVal value As String)
            sDonVi = value
        End Set
    End Property

    Public Property DonViChuyenDoi() As String
        Get
            Return sDonViChuyenDoi
        End Get
        Set(ByVal value As String)
            sDonViChuyenDoi = value
        End Set
    End Property

    Public Property TyLeChuyenDoi() As Single
        Get
            Return slTyLeChuyenDoi
        End Get
        Set(ByVal value As Single)
            slTyLeChuyenDoi = value
        End Set
    End Property

    Public Property ThoiHanBaoHanh() As String
        Get
            Return sThoiHanBaoHanh
        End Get
        Set(ByVal value As String)
            sThoiHanBaoHanh = value
        End Set
    End Property

    Public Property SoLuongToiThieu() As Integer
        Get
            Return iSoLuongToiThieu
        End Get
        Set(ByVal value As Integer)
            iSoLuongToiThieu = value
        End Set
    End Property

    Public Property DonGiaMua() As Decimal
        Get
            Return dDonGiaMua
        End Get
        Set(ByVal value As Decimal)
            dDonGiaMua = value
        End Set
    End Property

    Public Property DonGiaBan() As Decimal
        Get
            Return dDonGiaBan
        End Get
        Set(ByVal value As Decimal)
            dDonGiaBan = value
        End Set
    End Property

    Public Property ThueSuat() As Single
        Get
            Return slThueSuat
        End Get
        Set(ByVal value As Single)
            slThueSuat = value
        End Set
    End Property

    Public Property SoDoiTuong() As Integer
        Get
            Return iSoDoiTuong
        End Get
        Set(ByVal value As Integer)
            iSoDoiTuong = value
        End Set
    End Property

    Public Property DienGiai() As String
        Get
            Return sDienGiai
        End Get
        Set(ByVal value As String)
            sDienGiai = value
        End Set
    End Property

    Public Property HoatDong() As Boolean
        Get
            Return bHoatDong
        End Get
        Set(ByVal value As Boolean)
            bHoatDong = value
        End Set
    End Property

End Class
